package com.zlzxm.shoesmarket.net.api;

import com.zlzxm.shoesmarket.net.request.RqLogin;
import com.zlzxm.shoesmarket.net.request.RqRegister;
import com.zlzxm.shoesmarket.net.respone.BaseResponse;
import com.zlzxm.shoesmarket.net.respone.RpLogin;
import com.zlzxm.shoesmarket.net.respone.RpVip;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * CREATE BY zlzxm ON 5/11/21
 */
public interface UserApi {

    @GET("/qiuxie/v1/vip/list")
    Observable<BaseResponse<List<RpVip>>> vipList();


    @GET("qiuxie/v1/vip/discribe")
    Observable<BaseResponse<String>> vipDesc();

    @POST("qiuxie/auth/register")
    Observable<BaseResponse<String>> register(@Body RqRegister rqRegister);

    @POST("qiuxie/auth/login")
    Observable<BaseResponse<RpLogin>> login(@Body RqLogin rqLogin);

}
